#include <stdio.h>
int main()
{
	int k = 0;
	int n = 0;
	double sum = 0;
	scanf_s("%d", &n);
	for (int i = 0;;)
	{
		if (k < sum)
			break;
		    n++;
			sum += 1.0 / n;
	}
	printf("%d", n);
	return 0;
}
